package com.dek.seckill.service;


import com.dek.seckill.mapper.GoodsMapper;
import com.dek.seckill.vo.GoodsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsService {

    @Autowired
    private GoodsMapper goodsMapper;


    public List<GoodsVO> goodsVOList() {
        return goodsMapper.getGoodsVOList();
    }

    public GoodsVO getDetail(Long goodsId) {
        return goodsMapper.getDetail(goodsId);
    }
}
